/*******************************************************************************
*  file    : modhertzelwindow.hpp
*  created : 22.05.2012
*  author  : Slyshyk Oleksiy (alex312@meta.ua)
*******************************************************************************/

#ifndef MODHERTZELWINDOW_HPP
#define MODHERTZELWINDOW_HPP

#include <QWidget>

namespace Ui {
class QModHertzelWindow;
}

class QModHertzelWindow : public QWidget
{
    Q_OBJECT
    
public:
    explicit QModHertzelWindow(QWidget *parent = 0);
    ~QModHertzelWindow();

    int bufSize();
    int harmonikNum();
public slots:
    void setSampleRate(int rate);
private slots:
    void bufSizeChange(int new_size);
    void HarmonicChange(int new_harm);
    void deltaFChange(double new_delta);
signals:
    void recalcHertzel();
private:
    Ui::QModHertzelWindow *ui;
    int m_sampleRate;
    bool is_program_change;
};

#endif // MODHERTZELWINDOW_HPP
